package com.xiaobawang.knowledge.spider.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author synhard
 * @description 获取 Yaml 中用户自定义的配置
 * @date 2024/4/8 10:10
 * @email songxinhang2023@e-chinalife.com
 * @id 18101119
 * @phone 13001321080
 */
@Component
@Data
@ConfigurationProperties(prefix = "mail")
public class EmailConfig {
    // 邮件发送方
    private String from;

    // 监管信息邮件收取方
    private String[] supervisorFileReceiver;

    // 保险产品信息邮件收取方
    private String[] productReceiver;

    // 系统出错邮件接收方
    private String[] errorReceiver;
}
